package com.hkd.user_service.api.fallback;

import com.hkd.common.api.BaseFallBack;
import com.hkd.common.api.BaseFallbackFactory;
import com.hkd.user_service.api.UserAddressService;
import org.springframework.stereotype.Component;

/**
 * @author HKD
 * @date 2022/9/17 18:16
 */
@Component
public class UserAddressServiceImplFallback extends BaseFallbackFactory<UserAddressService> {
    @Override
    public UserAddressService create(Throwable throwable) {
        FeignFallback fallback = new FeignFallback();
        fallback.setCause(throwable);
        return fallback;
    }

    public class FeignFallback extends BaseFallBack implements UserAddressService {

    }
}
